﻿//-----------------------------------------------------------------------
// <copyright file="ServiceCollectionExtensions.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : lizhineng
// * FileName: ServiceCollectionExtensions.cs
// * history : created by lizhineng 2017-10-22 09:39:01
// </copyright>
//-----------------------------------------------------------------------

namespace Slwy.Redis
{
    using Microsoft.Extensions.DependencyInjection;
    using Slwy.Redis.Contracts;
    using Slwy.Redis.Implements;

    public static class ServiceCollectionExtensions
    {
        public static void AddRedisService(this IServiceCollection services)
        {
            services.AddScoped<IRedisHelper, RedisHelper>();
            services.AddSingleton<RedisConnectionHelper>();
        }
    }
}
